package com.sxfq.loansupermarket.backsystem.modular.marketing.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.modular.arrival.entity.CustomerInfo;
import com.sxfq.loansupermarket.backsystem.modular.marketing.entity.ReservationsInfo;
import com.sxfq.loansupermarket.backsystem.modular.marketing.entity.SearchReservationsInfo;

import java.util.List;

/**
 * @author py
 * @Date 2018年4月19日23:15:54
 */
public interface IReservationsService {
    List<ReservationsInfo> selectPageListByStatusMap(Page<ReservationsInfo> page, SearchReservationsInfo searchInfo);

    List<ReservationsInfo> selectPageListByStatusMap2(Page<ReservationsInfo> page, SearchReservationsInfo searchInfo);

    int getQueryPagesCount(Page<ReservationsInfo> page, SearchReservationsInfo searchInfo);

    //已到记录
    List<ReservationsInfo> selectPageListByStatusMapYDjl(Page<ReservationsInfo> page, SearchReservationsInfo searchInfo);

    //已到记录统计
    int getQueryPagesCountYDjl(Page<ReservationsInfo> page, SearchReservationsInfo searchInfo);

    //已到记录导出
    List<ReservationsInfo> reservationsExportYDjl(SearchReservationsInfo searchInfo);

    ReservationsInfo selectOneById(String reservationsId);

    ReservationsInfo selectOneById2(String reservationsId);

    int reservationsUpdate(ReservationsInfo reservationsInfo);

    List<ReservationsInfo> reservationsExport(SearchReservationsInfo searchInfo);

    int insert(ReservationsInfo info);

    int insertsc(ReservationsInfo info);

    int insert(CustomerInfo customerInfo);

    int insertCustomerStatus(CustomerInfo customerInfo);

    List<ReservationsInfo> getCustomerPhoneCounts(String customerPhone);

    ReservationsInfo getCustomerPhoneCount(String customerPhone);

    ReservationsInfo getCustomerPhoneCount2(String customerPhone2);

    int getUpdatePhoneCount(ReservationsInfo info);

    int getUpdatePhoneCount2(ReservationsInfo info);

    void deleteReservation(String id);

    int update(ReservationsInfo info);

    int updatesc(ReservationsInfo info);

    int adminUpdate(ReservationsInfo info);

    int insertDeleteLog(ReservationsInfo reservations);
}